package com.jemmyee.pizza.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jemmyee.pizza.dao.IStatisticDao;
import com.jemmyee.pizza.statistic.ApplyStatistic;
import com.jemmyee.pizza.statistic.DailyStatistic;
import com.jemmyee.pizza.statistic.DredgeStatistic;
import com.jemmyee.pizza.statistic.ExecrptStatistic;
import com.jemmyee.pizza.statistic.PreExcerptStatistic;

/**
 * @author qiuchao
 * 2011-3-5
 */
@Service("statisticService")
public class StatisticServiceImpl implements IStatisticService {
	@Autowired
	private IStatisticDao statisticDao;
	/* (non-Javadoc)
	 * @see com.jemmyee.pizza.service.IStatisticService#applyStatistic()
	 */
	public List<ApplyStatistic> getApplyStatistic(String sqlString) {
		return statisticDao.applyStatistic(sqlString);
	}
	/* (non-Javadoc)
	 * @see com.jemmyee.pizza.service.IStatisticService#getPreExcerptStatistic(java.lang.String, java.lang.String)
	 */
	public List<PreExcerptStatistic> getPreExcerptStatistic(String sqlString) {
		return statisticDao.preExcerptStatistic(sqlString);
	}
	/* (non-Javadoc)
	 * @see com.jemmyee.pizza.service.IStatisticService#getDredgeStatistic(java.lang.String)
	 */
	public List<DredgeStatistic> getDredgeStatistic(String sqlString) {
		// TODO Auto-generated method stub
		return statisticDao.dredgeStatistic(sqlString);
	}
	/* (non-Javadoc)
	 * @see com.jemmyee.pizza.service.IStatisticService#getExcerptStatistic(java.lang.String)
	 */
	public List<ExecrptStatistic> getExcerptStatistic(String sqlString) {
		// TODO Auto-generated method stub
		return statisticDao.excerptStatistic(sqlString);
	}
	/* (non-Javadoc)
	 * @see com.jemmyee.pizza.service.IStatisticService#getDailyStatistic(java.lang.String)
	 */
	public List<DailyStatistic> getDailyStatistic(String sqlString) {
		// TODO Auto-generated method stub
		return statisticDao.dailyStatistic(sqlString);
	}

}
